﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcMall.Framework.Extensions; 

namespace MvcMall.Framework.Helpers
{
    /// <summary>  
    /// 脚本模板
    /// </summary>
    public static class UrlHelperExtensions
    {
        /// <summary>
        ///   脚本存放的路径
        /// </summary>
        /// <param name = "helper"></param>
        /// <param name = "fileName"></param>
        /// <returns></returns>
        public static string JavaScript(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/Scripts/{0}".FormatWith(fileName));
        }

        /// <summary>
        ///   CSS文件存放的路径
        /// </summary>
        /// <param name = "helper"></param>
        /// <param name = "fileName"></param>
        /// <returns></returns>
        public static string StyleSheet(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/Content/{0}".FormatWith(fileName));
        }

    }
}